$(document).ready(function() {
	/**
	 * 处理下单
	 */
	$('#btn_doPlaceOrder').click(function() {
		$.ajax({
			url: '/Order/doPlaceOrder',
			type: 'post',
			async: true, //default: true
			data: $('#form_placeOrder').serialize(),
			dataType: 'json', // default: Intelligent Guess (xml, json, script, or html)
			success: function (data, textStatus, jqXHR) {
				if (200 == data.status) {
					location.href = '/Order/doPlaceOrderSuccess'
				} else if (-1 != $.inArray(data.status, [40020101])) {
					$('#tip_placeOrder').html(data.msg)
				}
			}
		})
	})


})